package com.ilink.teacherservice.entity.DTO;

import java.io.Serializable;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class StudyResourceDto implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long resourceId;   // 资源或文件夹的 ID
    private String name;       // 资源或文件夹名称
    private String resourcePath; // 资源路径，文件夹的路径为null
    private Date createdAt;    // 创建时间
    private String tag;        // 标签，用于标识类型（如文档、网页、音视频等）
    private Integer sortOrder; // 排序字段
    private Boolean isFolder;  // 是否是文件夹
    private Long courseId;     // 新增的 courseId 字段
    private Integer level;
    private Boolean ossWriteStatus;
    private Boolean ragCompleteStatus;
    private Boolean smartTextStatus;
    private Boolean handleCompleteStatus;
    private Boolean transcriptionComplete;
    private Boolean transcriptionCompleteStatus;

    // 如果是文件夹，可以嵌套显示子文件夹
    private List<StudyResourceDto> childFiles = new ArrayList<>();
}
